From 22b1abb36dcd159249906e3c264c5c329a430244 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Sun, 26 Dec 2021 12:43:22 -0800 Subject: [PATCH] testsuite: ignore texthistory selection on delete/backspace We don't need to apply these here, as it will clear the selection which is needed for the undo. Otherwise we won't be able to test that we end up at the right selection afterwards. --- testsuite/gtk/texthistory.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/testsuite/gtk/texthistory.c b/testsuite/gtk/texthistory.c index a740d3523b..4da0dc5ab0 100644 --- a/testsuite/gtk/texthistory.c +++ b/testsuite/gtk/texthistory.c @@ -251,8 +251,6 @@ run_test (const Command *commands, set_selection (text, cmd->location, cmd->end_location); else if (strlen (cmd->text) == 1) set_selection (text, cmd->location, -1); - else - set_selection (text, -1, -1); command_delete_key (cmd, text); break; @@ -261,8 +259,6 @@ run_test (const Command *commands, set_selection (text, cmd->location, cmd->end_location); else if (strlen (cmd->text) == 1) set_selection (text, cmd->end_location, -1); - else - set_selection (text, -1, -1); command_delete_key (cmd, text); break; -- 2.30.2